package com.siyu.rehearsal.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Component
public class ModelCalculationDto {

    // 调洪开始时间
    @NotNull
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date start_time;

    // 调洪结束时间
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date end_time;

    // 流量条件上限
    private Double q_in_max = 7080.0;

    // 流量条件下限
    private Double q_in_min = 4108.0;

    // 上游水位最大值
    private Double z_max = 36.2;

    // 上游水位最小值
    private Double z_min = 35.9;

    // 流量序列
    private ArrayList<Double> q_flood;

    // 时间序列
    private ArrayList<String> t;

    // 是否保存
    private String save;

    // 雨量序列1
    private ArrayList<ArrayList<Double>> pr = new ArrayList<>();

    // 步长
    private int step = 3;

}